package com.maiji.cloud.entities.shopingmall;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.Version;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.util.Date;

/**
 *  商品评论点赞表
 */
@NoArgsConstructor
@Data
@Accessors(chain=true)
@Table(name = "goods_comment_thumbs_up")
public class GoodsCommentThumbsUp {

    @TableId
    @Column(name = "uu_id", type = MySqlTypeConstant.VARCHAR, length = 50, isKey = true)
    private String uuId;

    @Column(name = "goods_comment_id", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String goodsCommentId;  // 商品评论ID

    @Column(name = "user_id", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String userId;  // 点赞者ID

    @Column(name = "thumbs_up_date", type = MySqlTypeConstant.DATETIME)
    private Date thumbsUpDate; // 点赞日期时间

    @TableLogic
    @Column(name = "is_cancel", type = MySqlTypeConstant.INT, length = 1)
    private Integer isCancel; //是否取消收藏：1是，0否

    @Version
    @Column(name = "version", type = MySqlTypeConstant.INT, length = 1, defaultValue = "0")
    private Integer version; // 数据版本号

}
